<?php
if(!defined('IN_SONG')) exit('No direct script access allowed');  
/**
 * Class Object
 * 
 * @package         Kernel  
 * @version         0.1
 * @copyright       Song (c) 2011
 */  
class Object
{
    /**
     * A hack to support __construct() on PHP 4
     * Hint: descendant classes have no PHP4 class_name() constructors,
     * so this constructor gets called first and calls the top-layer __construct()
     * which (if present) should call parent::__construct()
     *
     * @return Object
     */
    function Object() {
        $args = func_get_args();
        if (method_exists($this, '__destruct')) {
            register_shutdown_function (array(&$this, '__destruct'));
        }
        call_user_func_array(array(&$this, '__construct'), $args);
    } 
    
    function __construct() {
       //var_dump($this);
    } 
    
    /**
	 * Stop execution of the current script
	 *
	 * @param $status see http://php.net/exit for values
	 * @return void
	 * @access public
	 */
	function _stop($status = 0) {
		exit($status);
	}
}
?>
